#!/bin/bash 

CURPATH="/iflytek/uoamp/uoampagent"
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${CURPATH}/conf/thirdLibs
export LANG=en_US.UTF-8

. /etc/profile
. ~/.bash_profile

FLAGEID=$(ps aux | grep uoamp-agent-main |grep -v grep |grep -v guardMCAgent| grep jar|awk '{print $2}')
#echo $result
if [[ "$FLAGEID" == "" ]];then
   	cd ${CURPATH}
   	./uoampagent.sh restart
fi
